@model ExpertSMS.Models.BillOfLading

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Date)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Date)
    @Html.ValidationMessageFor(model => model.Date)
</div>

<div class="editor-label">
    Supplier
</div>
<div class="editor-field">
    @Html.Encode(((ExpertSMS.Models.Supplier)ViewBag.Supplier).Name)
    @Html.HiddenFor(model => model.SupplierID,((ExpertSMS.Models.Supplier)ViewBag.Supplier).SupplierID)
    @Html.ValidationMessageFor(model => model.SupplierID)
</div>
<div class="editor-label">
    Store
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.StoreID, ((IEnumerable<ExpertSMS.Models.Store>)ViewBag.PossibleStores).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Name), 
        Value = option.StoreID.ToString(),
        Selected = (Model != null) && (option.StoreID == Model.StoreID)
    }))
    @Html.ValidationMessageFor(model => model.StoreID)


</div>
